﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MainFrameService
{
    public class NameService
    {
        Dictionary<string, int> Names = new Dictionary<string, int>();
        public string GetName(string typename) 
        {
            if (!Names.ContainsKey(typename)) 
            {
                Names[typename]=0;
            }
            Names[typename]++;
            return typename+Names[typename];
        }
    }
}
